package cn.haixiang.org.service;


import cn.haixiang.org.domain.Department;
import cn.haixiang.org.domain.Employee;
import cn.haixiang.org.query.DepartmentQuery;
import cn.haixiang.basice.util.PageList;

import java.util.List;

public interface IDepartmentService {

    /*查询department所有*/
    List<Department> findAll();

    /*根据id进行查询 */
    Department findById(Long id);

    /*根据id进行修改*/
    void update(Department department);

    /*根据id进行删除*/
    void delete(Long id);

    /*根据用户进行新增*/
    void add(Department department);

    // 查询分页
    PageList<Department> queryByPage(DepartmentQuery query);

    void batchDelete(List<Long> ids);

//    List<Department> tree();
    List<Department> tree();

    //通過id部門查找員工
    List<Employee> findEmpById(Long id);
}
